#! /bin/sh /usr/share/dpatch/dpatch-run
## 08_mixins_DirBrowser_py.dpatch by LI Daobing <lidaobing@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: image file should in workpath
## DP: http://code.google.com/p/pkg-newedit/issues/detail?id=3

@DPATCH@
diff -urNad ulipad-3.6~/mixins/DirBrowser.py ulipad-3.6/mixins/DirBrowser.py
--- ulipad-3.6~/mixins/DirBrowser.py	2006-12-02 22:09:08.000000000 +0800
+++ ulipad-3.6/mixins/DirBrowser.py	2007-03-19 23:50:40.000000000 +0800
@@ -559,7 +559,7 @@
         self.fileimageindex = {}
         for image in self.fileimages.values():
             if not self.fileimageindex.has_key(image):
-                obj = common.getpngimage(os.path.join(self.mainframe.userpath, 'images', image))
+                obj = common.getpngimage(os.path.join(self.mainframe.workpath, 'images', image))
                 self.fileimageindex[image] = self.dirbrowserimagelist.Add(obj)
 
     def OnIgnoreThis(self, event):
